home *** CD-ROM | disk | FTP | other *** search
/ Aminet 2 / Aminet AMIGA CDROM (1994)(Walnut Creek)[Feb 1994][W.O. 44790-1].iso / Aminet / util / cli / UnixUtils.lha / UnixUtils / Source / Diff / Makefile < prev   
Encoding:
Makefile  |  1992-04-14  |  1.4 KB  |  62 lines

  1. # Makefile for GNU DIFF
  2. # *** Special Amiga Version *** SAS C LMK ***
  3.  
  4. CC    = LC:lc -O -cus
  5. CFLAGS    = -DAMIGA -DSTDC_HEADERS -D__CHAR_UNSIGNED__ -DCHAR_UNSIGNED
  6. L0    = LC:blink FROM LIB:c.o
  7. L1    = LIBRARY LIB:lc.lib LIB:amiga.lib
  8.  
  9. objs = diff.o analyze.o io.o context.o ed.o normal.o util.o dir.o \
  10.      regex.o ifdef.o version.o getopt.o getopt1.o fixupname.o alloca.o
  11.  
  12. diff: $(objs)
  13.     $(L0) $(objs) TO diff $(L1)
  14.  
  15. alloca.o: alloca.c
  16.     $(CC) $(CFLAGS) -DSTACK_DIRECTION=(-1) alloca.c
  17.  
  18. analyze.o: analyze.c diff.h regex.h
  19.     $(CC) $(CFLAGS) analyze.c
  20.  
  21. context.o: context.c diff.h regex.h
  22.     $(CC) $(CFLAGS) context.c
  23.  
  24. diff.o: diff.c diff.h regex.h
  25.     $(CC) $(CFLAGS) diff.c
  26.  
  27. dir.o: dir.c diff.h regex.h
  28.     $(CC) $(CFLAGS) dir.c
  29.  
  30. ed.o: ed.c diff.h regex.h
  31.     $(CC) $(CFLAGS) ed.c
  32.  
  33. getopt.o: getopt.c diff.h regex.h
  34.     $(CC) $(CFLAGS) getopt.c
  35.  
  36. getopt1.o: getopt1.c diff.h regex.h
  37.     $(CC) $(CFLAGS) getopt1.c
  38.  
  39. ifdef.o: ifdef.c diff.h regex.h
  40.     $(CC) $(CFLAGS) ifdef.c
  41.  
  42. io.o: io.c diff.h regex.h
  43.     $(CC) $(CFLAGS) io.c
  44.  
  45. normal.o: normal.c diff.h regex.h
  46.     $(CC) $(CFLAGS) normal.c
  47.  
  48. regex.o: regex.c regex.h
  49.   LC:lc -p -oregex.p.c $(CFLAGS) regex.c    # LC by itself barfs here...
  50.   $(CC) -oregex.o regex.p            # This if lots of memory...
  51. # LC:lc -cus -oregex.o regex.p            # This if few memory...
  52.   delete regex.p.c
  53.  
  54. util.o: util.c diff.h regex.h
  55.     $(CC) $(CFLAGS) util.c
  56.  
  57. version.o: version.c diff.h regex.h
  58.     $(CC) $(CFLAGS) version.c
  59.  
  60. fixupname.o: fixupname.c
  61.     $(CC) $(CFLAGS) fixupname.c
  62.